cmake_minimum_required(VERSION 3.23)
project(Cl C)

set(CMAKE_C_STANDARD 11)
file (GLOB_RECURSE files *.cpp)
foreach (file ${files})
    string(REGEX REPLACE ".+/(.+)\\..*" "\\1" exe ${file})
    add_executable (${exe} ${file} cmake-build-debug/Test.c project/ShuiXianHua.c project/Multiplication.c "project/ BubbleSort.c")
    message (\ \ \ \ --\ src/${exe}.cpp\ will\ be\ compiled\ to\ bin/${exe})
endforeach ()

add_executable(Cl main.c )

add_executable(Link Link.c)

add_executable(Fibonacci project/Fibonacci.c)
add_executable(quicksort project/quicksort.c)
add_executable(StrKMP project/StrKMP.c)